import { EntityModel } from '@midwayjs/orm';
import  {xsEntity} from '../commentity';
import { Column, ManyToOne } from 'typeorm';
import { BaseSysMenuEntity } from './menu';

/**
 * 角色菜单
 */
@EntityModel('base_sys_role_menu')
export class BaseSysRoleMenuEntity extends xsEntity {
  @Column({ comment: '角色ID', type: 'bigint' })
  roleId: number;

  @ManyToOne(()=>BaseSysMenuEntity , BaseSysMenuEntity=>BaseSysMenuEntity.roles)
  menuId: BaseSysMenuEntity;

  
}
